import http from '../../utils/request'
import type { Userlogin } from '../ApiType/userType'

/**
 * @param data
 * @description 登录
 */
export function login(data: Userlogin) {
  return http.post('/api/login', data)
}
/**
 * @param data 
 * @description 退出登录
 */
export function logout() {
  return http.post('/api/logout')
}
/**
 * @param data
 * @description 登录
 */
export function register(data: Userlogin) {
  return http.post('/api/register', data)
}